package nestedClasses;

public class EnclosingClass {
	
	static int sCount ;
	static int ARPU ;
	int z = 30 ;
	//Constructor
	public  EnclosingClass()
	{
		
	}
		

	//Static nested calss is only static wrt to enclosing class
	static class SnestedClass{
		int x = 10;
		static int y = 20 ;
		
		public int revenue()
		{
			//Static nested clas cannot access instance variables of the enclosing class
			//x = z ;
			return sCount*ARPU ;
		}
		public static void staticFunction()
		{
			//Static nested clas cannot access instance variables of the enclosing class
			//x = z ;
			System.out.println("Static function in static nested class is called");
		}
	}

}
